﻿#ifndef SETCOLVALDLG_H
#define SETCOLVALDLG_H

#define			NUMBER			0
#define			NOT_NUMBER		1
#define			ID_DATE			2
#define			ID_SEARCH		3

#include <QDialog>
#include <QString>

namespace Ui {
    class SetColValDlg;
}

class SetColValDlg : public QDialog 
{
    Q_OBJECT
public:
    SetColValDlg(int StartRowNo, int EndRowNo, QString StrStart, double DataStart, QString StrFocus, double DataFocus, bool bNumValue, QWidget *parent = 0);
    ~SetColValDlg();

public:
	void GetParam(bool &bAddFlag, double &ValueStart, double &ValueStep, bool &bSelectStart);
	void SetType(int ii_Type) { m_iType = ii_Type; }


protected slots:
	void CheckAddFlag();
	void CheckSelectFlag();
	void Affirm();
	void Cancel();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::SetColValDlg *ui;
	int	m_StartRowNo;
	int	m_EndRowNo;
	double m_ValueStart;
	double m_ValueStep;
	QString m_StrFill;
	double m_DataFill;
	QString m_StrStart;
	double m_DataStart;
	QString m_StrFocus;
	double m_DataFocus;
	bool	m_bAddFlag;			//是否等差标志
	bool	m_bSelectStart;		//是否等差标志
	bool	m_bNumerFlag;
	int	m_iType;

	


};

#endif // SETCOLVALDLG_H
